import {debounce} from "@/common/doudong";

export const itemListenerMixin={
    mounted(){
        const refresh=debounce(this.$refs.scroll.scrollRefresh,100)
        this.clearRefresh=()=>{
            refresh()
        }
        this.$bus.$on('itemImageLoad',this.clearRefresh)
    }
}

import BackTop from "@/components/content/backTop/BackTop";
export const backTop={
    component:{
        BackTop
    },
    data(){
        return{
        //    是否展示的数据
            isShow:false,
        }
    },
    methods:{
        backStart(){
            this.$refs.scroll.scrollTo(0,0)
        },
    }
}
